package ch.phovoz.tlog;


import controller.DatabaseController;
import ch.phovoz.tlog.listener.EditExersices;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class TlogActivity extends Activity {
	

	private DatabaseController dbc;
   
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        dbc=new DatabaseController(this);

    }
    public void onEditSettingsKlick(View view){
    	switch (view.getId()){
    	case R.id.mainEditSettingsButton:
    		startActivity(new Intent(this, EditExersices.class));
    		
    		
    		break;
    		}
    }
    public void onNewTrainKlick(View view){
    dbc.StartTraining();

    	switch (view.getId()){
    	case R.id.mainNewTrainButton:
    		startActivity(new Intent(this, TrainingActivity.class));
    		
    		
    		break;
    	
    	}
  
    }
}